package com.example.principle.ocp;

public interface Priority extends Comparable<Priority>{


    int NORMAL_PRIORITY =  0;

    default int getPriority() {
        return NORMAL_PRIORITY;
    }

    @Override
    default int compareTo(Priority o) {
        return Integer.compare(this.getPriority(),o.getPriority()) ;
    }
}
